
# 二维数组去重复，可以将元素转为tuple，然后用set集合去重复
array = [[1,2],[1,2],[2,3],[2,3],[3,4],[5,6]]
# t = [(1,2),(1,2),(2,3)]

s = [tuple(i) for i in array]

print(list(set(s)))
# 通过转为字典去重复
di = {}
for a in array:
    di.setdefault(a[0],a[1])
print([[i, v] for i,v in di.items()])




